package mips;

public class PC {
	
	public static int pc = 0;
	public static int pcInitial = 0;
   
  public static void fourAdder(int pcValue){
		pc = pc + 4;
	}
	public static void fourAdderIfBranch(int pcValue, int bitsAdress){
		int addressExtended = Integer.parseInt(Decoder.AddzerostoLeft(Decoder.toBinary(bitsAdress)+"",32));
		pc = addressExtended + pc + 4;
	}
	public static void jumpRegerster(int source){
		pc = Register.registers[source];
	}
 
}
